/* Webhooks样式修复 - 简化的高优先级样式 */

/* 表格样式 */
#project-webhooks-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

#project-webhooks-table th {
    font-weight: 600 !important;
    text-align: center !important;
    vertical-align: middle !important;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
    padding: 12px 8px !important;
}

#project-webhooks-table td {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 10px 8px !important;
    border-top: 1px solid #dee2e6 !important;
}

/* 名称列 */
#project-webhooks-table td:first-child {
    text-align: left !important;
}

/* URL列 */
.webhook-url {
    word-break: break-all !important;
    text-align: left !important;
    font-size: 12px !important;
    color: #6c757d !important;
}

/* 渠道样式 - 高优先级 */
.webhook-channel {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: white !important;
    margin: 0 !important;
}

/* 渠道颜色 - 高优先级 */
.webhook-channel.platform {
    background-color: #17a2b8 !important; /* 平台 - 青色 */
}

.webhook-channel.feishu {
    background-color: #00b42a !important; /* 飞书 - 绿色 */
}

.webhook-channel.wework {
    background-color: #07c160 !important; /* 企业微信 - 浅绿色 */
}

/* 触发事件容器 */
.webhook-events {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px !important;
    min-height: 30px !important;
    align-items: center !important;
}

/* 触发事件标签 */
.webhook-event {
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: white !important;
    margin: 2px !important;
}

/* 触发事件颜色 */
.webhook-event.alarm {
    background-color: #dc3545 !important; /* 报警信息 - 红色 */
}

.webhook-event.announcement {
    background-color: #007bff !important; /* 公告信息 - 蓝色 */
}

/* 状态样式 */
.webhook-status {
    display: inline-block !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: white !important;
    margin: 0 !important;
}

.webhook-status.active {
    background-color: #28a745 !important; /* 已激活 - 绿色 */
}

.webhook-status.inactive {
    background-color: #dc3545 !important; /* 已禁用 - 红色 */
}

/* 日期时间样式 */
.webhook-datetime {
    font-size: 12px !important;
    color: #6c757d !important;
}

/* 从未触发样式 */
.never-triggered {
    font-style: italic !important;
    font-size: 12px !important;
    color: #adb5bd !important;
}

/* 操作按钮样式 */
.webhook-actions .btn {
    margin: 0 3px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
}